home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ McAfee VirusScan 1.xpl < prev    next >
Text File  |  2001-11-27  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Other Programs\McAfee VirusScan"
  5. "NAME"="Show Splash Screen"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Display VShield splash screen"
  8. "TEXT 2"="Display VirusScan splash screen"
  9. "DESCRIPTION 1"="These options let you configure which splash screens are shown by McAfee VirusScan."
  10. "DESCRIPTION 2"="The VShield splash screen appears when you start your computer (if you have VShield loaded) and the VirusScan splah screen appears when you do a routine scan of your computer."
  11. "DESCRIPTION 3"="Note: When you install DAT or Engine updates, these may reset the splash screens so that they appear again."
  12. "COMMENT 1"="Taken from http://pages.zdnet.com/hampsi/Articles/splash.htm courtesy of the Lockergnome Newsgroups."
  13. "VERSION"="1.01"
  14. "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "CONTACTURL"="http://www.xteq.com/"
  17.  
  18. sP="HKLM\Software\McAfee\Scan95\"
  19. sV2="DefaultVSC"
  20. sV1="DefaultVSH"
  21. sN2="bSkipSplash"
  22. sN1="bNoSplash"
  23.  
  24. SUB Plugin_Initialize
  25.  s=RegReadValue(sP&sV1)
  26.  if IsEmpty(s)=false then
  27.   t=IniReadValue(s,"General",sN1)
  28.   if t="0" then
  29.    Call SetUIElement(1,true)
  30.   end if
  31.  else
  32.   Call Disable()
  33.  end if
  34.  
  35.  s=RegReadValue(sP&sV2)
  36.  if IsEmpty(s)=false then
  37.   t=IniReadValue(s,"ScanOptions",sN2)
  38.   if t="0" then
  39.    Call SetUIElement(2,true)
  40.   end if
  41.  else
  42.   Call Disable()
  43.  end if
  44. END SUB
  45.  
  46. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  s=GetUIElement(1)
  48.  v=RegReadValue(sP&sV1)
  49.  if s=true then
  50.   Call IniWriteValue(v,"General",sN1,"0")
  51.  else
  52.   Call IniWriteValue(v,"General",sN1,"1")
  53.  end if
  54.  
  55.  s=GetUIElement(2)
  56.  v=RegReadValue(sP&sV2)
  57.  if s=true then
  58.   Call IniWriteValue(v,"ScanOptions",sN2,"0")
  59.  else
  60.   Call IniWriteValue(v,"ScanOptions",sN2,"1")
  61.  end if
  62. END SUB
  63.  
  64. SUB Plugin_Terminate
  65. END SUB